//
//  MY_ReplenushmentListAPI.m
//  MiYuan_iOS
//
//  Created by zhangyongbing on 2018/5/14.
//  Copyright © 2018年 zhangyongbing. All rights reserved.
//

#import "MY_ReplenushmentListAPI.h"
NSString *const MYURLPath_GetReplenushmentList = @"/app/replenishmentlist/getReplenishmentList";

@implementation MY_ReplenushmentListAPI

+ (void)myGetReplenushmentListWithcomplationHandler:(OCJHttpResponseHander)handler {
    NSMutableDictionary *mDic = [NSMutableDictionary dictionary];
    
    [[OCJNetWorkCenter sharedCenter] ocj_POSTWithUrlPath:MYURLPath_GetReplenushmentList parameters:mDic andLodingType:OCJHttpLoadingTypeNone completionHandler:^(OCJBaseResponceModel *responseModel) {
        handler(responseModel);
        
        if (![responseModel.ocjStr_code isEqualToString:@"0"]) {
            [SGInfoAlert showInfo:responseModel.ocjStr_message
                          bgColor:[[UIColor blackColor] CGColor]
                           inView:[[UIApplication sharedApplication] keyWindow]
                         vertical:0.7];
        }
    }];
}


@end
